<%-- 
功能：该标签不常用，主要用于form action, url链接请使用virtualCategoryLink.tag 
--%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>

<%@ tag import="org.springframework.context.ApplicationContext" %>
<%@ tag import="org.springframework.web.context.support.WebApplicationContextUtils" %>
<%@ tag import="com.probiz.estore.catalog.service.VirtualCategoryManager" %>
<%@ tag import="com.probiz.estore.common.model.catalog.VirtualCategory" %>

<%@ attribute name="categoryId" type="java.lang.Integer" required="true" description="目录id"%>

<%
	ApplicationContext ctx = WebApplicationContextUtils.getWebApplicationContext(session.getServletContext());
	VirtualCategoryManager virtualCategoryManager = (VirtualCategoryManager) ctx.getBean("virtualCategoryManager");
	String uri = virtualCategoryManager.getUriByCategoryId(categoryId);
	out.print(application.getAttribute("ctxPath")+uri);
%>

